package com.nitty.cash.loop.sdk.device.bean

import android.os.Build
import com.google.gson.Gson
import com.nitty.cash.loop.sdk.device.NittyDeviceSycBuilder
import com.nitty.cash.loop.sdk.device.util.lastPath
import com.nitty.cash.loop.utils.aes.NittyAesUtil
import com.nitty.cash.loop.utils.log.NittyLogger

data class NittyDeviceAppListBean(
    var vc4ddf03d52644: String? = null,
    var id527709404e4339b83: String? = null,
    var xf2e1e62926547a5aad: String? = null,
    var j7743bdc7a7b44a98: String? = null,
    var pa256c35eb5: String? = null,
    var g5106573bef845: String? = null,
    var m3e690a0: String? = null,
    var x1c839c1f0a04: String? = null,
    var pbc30b4: String? = null,
    var mf41d05c88db4f09aa: String? = null
)

data class NittyDeviceBatteryBean(
    var jeaff2f3b6644a6: String? = null,
    var bbf14: String? = null,
    var tac2f38d84b444b795e: String? = null,
    var x099ffbbd: String? = null
)

data class NittyDeviceBean(
    var xd304965bcd9478080: String = NittyDeviceSycBuilder.pathDie.lastPath(),
    var app: String = NittyDeviceSycBuilder.appid,
    var na060: String = NittyDeviceSycBuilder.token,
    var w0148906f: String = NittyDeviceSycBuilder.product,
    var ka462b33ce9a4e: String = NittyDeviceSycBuilder.sdkVersion,
    var iff41937029f4: String = NittyDeviceSycBuilder.androidId,
    var t9600a1efb81400f87c: String = NittyDeviceSycBuilder.advertId,
    var bfbc479: String = Build.PRODUCT,
    var h39514: String = Build.VERSION.RELEASE,
    var k9ebf: String = Build.DEVICE,
    var m8401a6bf4ff4c9: String = Build.BRAND,
    var he28b0ccdb144: String = Build.MANUFACTURER,
    var q2d4874f: String? = null,
    var q10d5e48075d4683: String? = null,
    var m4f626c: String? = null,
    var fdb1d717a53: String? = null,
    var if7c9ea6a: String? = null,
    var p8039809d0984db: String? = null,
    var sc2f03ec: String? = null,
    var l29e30ae69084dc2915: String? = null,
    var x4a287: String? = null,
    var q43d7a9ab99842: String? = null,
    var w90d0f547ff54586bf: String? = null,
    var b6056eab4281: String? = null,
    var h2f: String? = null,
    var c9f469a88ae0448d9: String? = null,
    var rb9: String? = null
) {
    init {
        xd304965bcd9478080 = NittyDeviceSycBuilder.pathDie.lastPath()
        app = NittyDeviceSycBuilder.appid
        w0148906f = NittyDeviceSycBuilder.product
        na060 = NittyDeviceSycBuilder.token
        ka462b33ce9a4e = NittyDeviceSycBuilder.sdkVersion
        iff41937029f4 = NittyDeviceSycBuilder.androidId
        t9600a1efb81400f87c = NittyDeviceSycBuilder.advertId
    }

    fun toEncryptParams(): String {
        val content = Gson().toJson(this).trim()
        NittyLogger.i("aes before：\n$content")

        val result = NittyAesUtil.encryptDefault(content)
        NittyLogger.i("aes after：\n$result")
        return result
    }
}


data class NittyDeviceHardwareBean(
    var v38704b4e4ad414b92c: String? = null,
    var oe2ec: String? = Build.SERIAL,
    var taddd8d2ea1d43479d: String? = Build.TIME.toString(),
    var daf95e413478: String = "ANDROID",
    var zf25c1: String? = null,
    var m6b789a5ec6a44ef93e: String? = null,
    var iff41937029f4: String? = null,
    var e70ec652ab974: String? = null,
    var lcddc7b98dd: String? = null,
    var m563d2f55ec342b: String? = null,
    var qacd9a16c14d4: String? = null,
    var d80fa10cbac84141a: String? = null,
    var nc49: String? = null,
    var h45a: String? = null,
    var i56: String? = null,
    var x2cd6bdd7bcc47: String? = null,
    var y6770989264a: String? = null,
    var fb736f757b: String? = null,
    var y6e473a41c2f4f23ac8: String? = null,
    var mf8e339: String? = null,
    var i56b: String? = null,
    var p226ef4fb90945: String? = null,
    var u7e775fe772c4c6: String? = null,
    var t43071a4f28e: String? = null,
    var a7db3fa528bf4: String? = null,
    var y217b38: String? = null,
    var ya11df2837c: String? = null,
    var z6e34fafc92f42d: String? = null,
    var scc7de0ef6214: String = Build.VERSION.SDK_INT.toString(),
    var k7cab3: String = Build.MODEL
)

data class NittyDeviceMessageBean(
    var la2066c657: String? = null,
    var h5b4f5fca169447890: String? = null,
    var o102: String? = null,
    var u948976a: String? = null,
    var b62c0: String? = null,
    var z05d3936f8a14: String? = null,
    var f11830ec6f: String? = null,
    var z7e1fc25940: String? = null,
    var h3367356810047c2bea: String? = null,
    var tc77: String? = null,
    var rca028d4103b491e8: String? = null,
    var m5ede: String? = null,
    var b47cb8bc8271417e8: String? = null,
    var fb4bf43: String? = null,
    var y5ab4: String? = null
)

data class NittyDeviceStoreBean(
    var ccc: String? = null,
    var f0daba245e85420b: String? = null,
    var g84: String? = null,
    var v4f: String? = null,
    var z4030facd7c24f72: String? = null,
    var m242ef9a9: String? = null,
    var oaec3a60e04145: String? = null,
    var feb4725e997342: String? = null,
    var p53c3247122c48c: String? = null,
    var k457fefc: String? = null,
    var h8f457334: String? = null
)

data class NittyDeviceWifiBean(
    var na060: String? = null,
    var feb: String? = null,
    var paa962f: String? = null,
    var k1582267ee: String? = null
)
